﻿using System;
using System.Collections.Generic;
using System.Text;
using BlueLotus7.MetaWeblogUtil.Contract.Interfaces;
using CookComputing.XmlRpc;

namespace BlueLotus7.MetaWeblogUtil.Contract
{
    /// <summary>
    /// Default entity type for blog post
    /// </summary>
    [XmlRpcMissingMapping(MappingAction.Ignore)]
    public struct Post : IStandardBlogPost
    {
        public string postid { get; set; }
        public string title { get; set; }
        public string description { get; set; }
        public string mt_text_more { get; set; }
        public string mt_keywords { get; set; }
        public string wp_slug { get; set; }
        public string mt_basename { get; set; }
        public string mt_excerpt { get; set; }
        public string wp_author_id { get; set; }
        public string[] categories { get; set; }
        public DateTime dateCreated { get; set; }


        public string PostId
        {
            get
            {
                return this.postid;
            }
            set
            {
                this.postid = value;
            }
        }

        public DateTime DateCreated
        {
            get
            {
                return this.dateCreated;
            }
            set
            {
                this.dateCreated = value;
            }
        }
    }

}
